package com.njegovanobradovic.icet.metamodel;

import java.util.Date;
import java.util.List;

import org.apache.tapestry5.beaneditor.Validate;

import com.njegovanobradovic.icet.util.translate.Language;


public interface User {
	public String getName();
	@Validate(value = "required")
	public void setName(String name);
	
	public String getLastName();
	@Validate(value = "required")
	public void setLastName(String lastName);
	
	public String getSurname();
	@Validate(value = "required")
	public void setSurname(String surname);

	public String getUsername();
	@Validate(value = "required")
	public void setUsername(String username);

	public String getPassword();
	@Validate(value = "required,minlength=4")
	public void setPassword(String password);

	public String getEmail();
	@Validate(value = "required,regexp")
	public void setEmail(String email);

	public Date getBirthdate();
	@Validate(value = "required")
	public void setBirthdate(Date birthdate);

	public Country getCountry();
	@Validate(value = "required")
	public void setCountry(Country country);

	public boolean isStatus();

	public void setStatus(boolean status);

	public List<Chat> getChats();

	public void setChats(List<Chat> chats);

	public Language getLanguage();
	@Validate(value = "required")
	public void setLanguage(Language language);
}
